#include<iostream>
using namespace std;

class integer


{
   public:   
   integer();
   integer(int xvalue);
   ~integer();
   
   int getmember(){return i;}
   void setmember(int y){i = y;} 
   private:
   int x;
   int i;
   
   
   
};
   integer::integer()
   {
      cout <<" defalut Constructer has been called"<<endl;
      
   } 

   integer::integer(int z)
      { int i= z;                                       
                                                     
      cout << " integer constructer called"<< endl;
         
   }

   integer::~integer()

   {
      cout <<"destructer been called"<<endl;
      
   }
int main()
{   

integer cat;
   cat.setmember(5);
   cout << "the default object is"<< cat.getmember()<<endl;
   integer box(7);
   cout << "the private member is"<<box.getmember()<< endl;
   return 0;
}

